
// 收货地址 所有接口地址模块封装：
import http from '@/utils/http'

// 新增：
export const reqAddAddress = (data)=>{
  return http.post('/userAddress/save',data)
}

// 获取所有地址：
export const reqAddressList = ()=>{
  return http.get('/userAddress/findUserAddress')
}

// 收货地址详情：
export const reqAddressInfo =(id)=>{
  return http.get(`/userAddress/${id}`)
}

// 修改、更新
export const reqUpdateAddress = (data)=>{
  return http.post('/userAddress/update',data)
}

// 删除：
export const reqDelAddress =(id)=>{
  return http.get(`/userAddress/delete/${id}`)
}